<%--
  Created by IntelliJ IDEA.
  User: whb
  Date: 2024/1/24
  Time: 10:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" language="java" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>聊天室</title>
</head>
<body>
<%--设置post请求编码集--%>
<fmt:requestEncoding value="utf-8"/>
<h3>欢迎，${param.nickname}</h3>
${param.nickname}:${param.content}
<hr/>
<form action ="2.jsp" method="post">
  输入内容:<input type="text" name="content"/>
    <input type="hidden" name="nickname" value="${param.nickname}"/>
    <button>输入内容</button>
</form>
</body>
</html>
